#ifndef __IPCNETWORKMANAGER_H__
#define __IPCNETWORKMANAGER_H__

#include "networkmanager.h"
#include "asycop.h"

class IPCNetworkManager : public AsyCop
{
    Q_OBJECT
public:
    NetworkManager *mNetwk;    
public: 
    IPCNetworkManager()
    {
        mNetwk = new NetworkManager;
        init();
    };
    ~IPCNetworkManager()
    {
        if(mNetwk)
            delete mNetwk;
    };
    virtual int do_request(QString &cmd, QByteArray &args);
    virtual int init();
private slots:
    void onRecieveServerData(const QByteArray &data);
    void onServerNotify(int code);
    void onReceivedData(const QString & ip, const QByteArray & data);
    void onNotify(const QString & ip, int code); 
};
#endif //__IPCNETWORKMANAGER_H__
